<?php
$mysql = new SaeMysql();
$sql = "SELECT * FROM `wx_lottery`";
$data = $mysql->getData($sql);
echo json_encode($data);
?>